//
//  ViewController.m
//  HandyQR
//
//  Created by cry on 2017/8/29.
//  Copyright © 2017年 cry. All rights reserved.
//

#import "ViewController.h"
#import "NSImage+MDQRCode.h"

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // Do any additional setup after loading the view.
    
    NSImageView *imageView = [[NSImageView alloc] init];
    imageView.image = [NSImage mdQRCodeForString:@"hello" size:200];
    
    imageView.frame = CGRectMake(0, 0, 200, 200);
    [self.view addSubview:imageView];
}


- (void)setRepresentedObject:(id)representedObject {
    [super setRepresentedObject:representedObject];

    // Update the view, if already loaded.
}


@end
